<div id="container" class="wrapper mt20">
  <div class="user-info">
    <div class="user-face">
      <div class="hover-layout"><span class="thumb size120"><i></i><img src="<?php if ($master_info['member_avatar']!='') { echo $master_info['member_avatar']; } else { echo UPLOAD_SITE_URL.'/'.ATTACH_COMMON.'/'.sysconf('default_user_portrait'); } ?>" />
        <?php if($relation == 3){?>
        <a href="<?php echo url('member/information/avatar');?>" title="上传新头像">更改头像</a>
        <?php }?>
        </span></div>
    </div>
    <dl class="user-data">
      <dt>
        <h2><?php echo !empty($master_info['member_truename'])?$master_info['member_truename']:$master_info['member_name'];?></h2>
        <span class="add-friend ml10"><span style="<?php if($relation != 2){?>display:none;<?php }?>" nc_type="mutualsign">互相关注</span><span style="<?php if($relation != 4){?>display:none;<?php }?>" nc_type="followsign">已关注</span>
        <?php if($relation == 1){?>
        <a data-param='{"mid":"<?php echo $master_info['member_id'];?>"}' nc_type="followbtn" href="javascript:void(0)">加关注</a>
        <?php }?>
        </span> </dt>
      <dd>
        <?php if($master_info['member_sex'] ==1 ){?>
        <span class="male pngFix">男</span>
        <?php }else if($master_info['member_sex'] == 2){?>
        <span class="female pngFix">女</span>
        <?php }?>
        <span class="location"><?php echo $master_info['member_areainfo'];?></span>
        <?php if(!empty($master_info['tagname'])){?>
        <span class="tag">兴趣标签：
        <?php foreach ($master_info['tagname'] as $val){?>
        <em><?php echo $val;?></em>
        <?php }?>
        </span>
        <?php }?>
        <?php if ($relation == '3'){?>
        <span><a href="<?php echo url('member/information/member');?>" title="编辑资料">编辑资料</a></span>
        <?php }?>
      </dd>
    </dl>
    <div class="user-stat">
      <dl class="noborder">
        <dd><?php echo $master_info['fan_count'];?></dd>
        <dt>粉丝</dt>
      </dl>
      <dl>
        <dd><?php echo $master_info['attention_count'];?></dd>
        <dt>关注</dt>
      </dl>
      <dl>
        <dd><?php echo $master_info['member_snsvisitnum'];?></dd>
        <dt>访问</dt>
      </dl>
    </div>
  </div>
  <div class="sns-nav">
    <ul>
      <li><a <?php if($menu_sign == 'snshome'){?>class="current"<?php }?> href="<?php echo url('member/snshome/index');?><?php if(!empty($master_id)){ echo '?mid='.$master_id; }?>"><i class="home pngFix"></i>首页</a></li>
      <li><a <?php if($menu_sign == 'sharegoods'){?>class="current"<?php }?> href="<?php echo url('member/snshome/shareglist');?><?php if(!empty($master_id)){ echo '?mid='.$master_id; }?>"><i class="goods pngFix"></i>宝贝</a></li>
      <li><a <?php if($menu_sign == 'sharestore'){?>class="current"<?php }?> href="<?php echo url('member/snshome/storelist');?><?php if(!empty($master_id)){ echo '?mid='.$master_id; }?>"><i class="store pngFix"></i>店铺</a></li>
      <li><a <?php if($menu_sign == 'snsalbum'){?>class="current"<?php }?> href="<?php echo url('member/snsalbum/index');?><?php if(!empty($master_id)){ echo '?mid='.$master_id; }?>"><i class="album pngFix"></i>相册</a></li>
      <li><a <?php if($menu_sign == 'snstrace'){?>class="current"<?php }?> href="<?php echo url('member/snshome/trace');?><?php if(!empty($master_id)){ echo '?mid='.$master_id; }?>"><i class="news pngFix"></i>新鲜事</a></li>
      <?php if(intval(sysconf('circle_isuse'))){?>
      <li><a <?php if($menu_sign == 'circle'){?>class="current"<?php }?> href="<?php echo url('circle/snscircle/index');?><?php if(!empty($master_id)){ echo '?mid='.$master_id; }?>"><i class="circle pngFix"></i>圈子</a></li>
      <?php }?>
    </ul>
    <?php if($relation == '3'){?>
    <div class="skin"><a href="javascript:void(0)" title="选择皮肤" class="pngFix" nctype="change_skin">选择皮肤</a></div>
    <?php }?>
  </div>
  <div class="sns-main">